#include <glib.h>
#include "util.h"

void g_list_free_with_data(GList* list)
{
  GList* item = list;
  while (item) {
    g_free(item->data);
    item = item->next;
  }
  g_list_free(list);
}
